<?php
namespace app\backend\model;

use think\Model;

class Article extends Model
{
    /**
     * @var string $pk 模型表
     */
    protected $pk = "article_id";

    /**
     * @var string $table 表名
     */
    protected $table = "blog_article";

    public function category()
    {
        return $this->belongsTo('Category', 'category_id');
    }
}